SetPalColor

Sets the RGB color of the imaG palette at a specific palette index.

Syntax: imaG.SetPalColor index , color
index (long) Specifies the index in the palette to set the color value. Must be in the range 0-255 ; 0-15 ; 0-1 for a color depth 8 ; 4 ; 1
color (OLE_COLOR) Color value.

If the image is a true color image (24 bit per pixel depth), an ERROR will be thrown.

If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.

See also Color & Palettes , GetPalColor , GetPalette , SetPalette